from selenium import webdriver
browser = webdriver.Chrome()
url = 'https://music.163.com/#/discover/toplist?id=71384707'
browser.get(url)
browser.switch_to.frame('contentFrame')
html_code = browser.page_source
with open(file='163music.txt', mode='w', encoding='utf-8') as fp:
    fp.write(html_code)
browser.quit()
